package com.gitee.wsl.ext.bitcode



fun Long.Companion.fromLowHigh(low: Int, high: Int): Long = (low.toLong() and 0xFFFFFFFFL) or (high.toLong() shl 32)

inline val Short.highByte: Byte get() = (toInt() ushr 8).toByte()
inline val Short.lowByte: Byte get() = (toInt() and 0xff).toByte()
val Short.lowHigh get() = lowByte to highByte


inline val Int.highShort: Short get() = (this ushr 16).toShort()
inline val Int.lowShort: Short get() = (this and 0xffff).toShort()
val Int.lowHigh get() = lowShort to highShort

inline val Long.highInt: Int get() = (this ushr 32).toInt()
inline val Long.lowInt: Int get() = (this and 0xffffffffL).toInt()
val Long.lowHigh get() = lowInt to highInt
